<template>
    <div class="box">
        <el-button type="primary" @click="$emit('add')">新增</el-button>
        <el-tooltip effect="dark" content="刷新" placement="bottom">
            <el-icon class="box-item" @click="$emit('refreshHandler')">
                <Refresh />
            </el-icon>
        </el-tooltip>
    </div>
</template>
<script setup lang='ts'>
defineEmits(['add','refreshHandler'])

</script>
<style scoped lang='scss'>
.box {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
</style>